package com.sitech.portal.system.service.impl;

import java.util.HashMap;
import java.util.List;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.dao.ISysManageUnitDao;
import com.sitech.portal.system.service.ISysManageUnitService;

public class SysManageUnitServiceImpl implements ISysManageUnitService {

	private ISysManageUnitDao sysManageUnitDao;
	

	public ISysManageUnitDao getSysManageUnitDao() {
		return sysManageUnitDao;
	}

	public void setSysManageUnitDao(ISysManageUnitDao sysManageUnitDao) {
		this.sysManageUnitDao = sysManageUnitDao;
	}

	@Override
	public void add(HashMap map) {
		// TODO Auto-generated method stub
		sysManageUnitDao.add(map);
	}

	@Override
	public void deleteByPKs(String id) {
		// TODO Auto-generated method stub
		sysManageUnitDao.deleteByPKs(id);
	}

	@Override
	public void deleteForROLE_MANAGERUNITIDByRoleId(String roleID) {
		// TODO Auto-generated method stub
		sysManageUnitDao.deleteForROLE_MANAGERUNITIDByRoleId(roleID);
	}

	@Override
	public List findByParentUnitManageId(String MANAGE_UNIT_ID) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findByParentUnitManageId(MANAGE_UNIT_ID);
	}

	@Override
	public IPage findChildManageUnitListByID(String MANAGE_UNIT_ID,
			PageForm pageForm) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findChildManageUnitListByID(MANAGE_UNIT_ID, pageForm);
	}

	@Override
	public int findCountByParentUnitManage_ID(String MANAGE_UNIT_ID) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findCountByParentUnitManage_ID(MANAGE_UNIT_ID);
	}

	@Override
	public List findFirstLevelOfManageUnitList() {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findFirstLevelOfManageUnitList();
	}

	@Override
	public IPage findFirstParentManageUnit(PageForm pageForm) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findFirstParentManageUnit(pageForm);
	}

	@Override
	public HashMap findObjByPK(String unitID) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findObjByPK(unitID);
	}

	@Override
	public List findSelfManageId(String MANAGE_UNIT_ID) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.findSelfManageId(MANAGE_UNIT_ID);
	}

	@Override
	public List getManageUnitIdsTreeList(String roleID) {
		// TODO Auto-generated method stub
		return sysManageUnitDao.getManageUnitIdsTreeList(roleID);
	}

	@Override
	public List getManageUnitTreeList() {
		// TODO Auto-generated method stub
		return sysManageUnitDao.getManageUnitTreeList();
	}

	@Override
	public void insertTB_SYS_ROLE_MANAGERUNITID(HashMap map) {
		// TODO Auto-generated method stub
		sysManageUnitDao.insertTB_SYS_ROLE_MANAGERUNITID(map);
	}

	@Override
	public void update(HashMap map) {
		// TODO Auto-generated method stub
		sysManageUnitDao.update(map);
	}

}
